import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * 元字符匹配符
 * 日期 2022/5/5 9:05
 * 创建者：john driver
 */
public class MateCharacter {
    public static void main(String[] args) {
        Pattern pattern = Pattern.compile("\\n");
        Matcher matcher = pattern.matcher("\n123456\n");
        while (matcher.find()){
            System.out.println(0);
        }
    }
}
